<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 1.检测获取字符串的长度
        var str = 'my name is andy';
        console.log(str.length);
        // 2.字符串的拼接 + 
        console.log('pink' + 18); //类型最后都是字符串
        console.log(12 + 12); //24
        // 数值相加，字符相连
    </script>
</head>
<body>
    
</body>
</html>  